<?php
namespace app\admin\controller;

use app\admin\model\Menu;

class Index extends Base
{
    protected $menu_model;

    protected function initialize()
    {
        parent::initialize();
        $this->menu_model = Menu::getInstance();

    }

    // 后台框架首页
    public function index()
    {
        $info = [];
        $info['admin_name'] = $this->admin_info['realname'];
        $info['admin_rule'] = $this->admin_info['rule'];
        $this->assign($info);
        return $this->fetch();
    }


    // 右侧默认页面
    public function main()
    {
        return $this->fetch();
    }

}
